<%@page contentType="text/html; charset=utf-8" language="java" errorPage="error.jsp"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
String subtitle = "基本选项";
String scripts = "/static/js/admin.js?v=0.0.1";
String styles = "/static/css/admin.css?v=0.0.1";
%>
<%@ include file="include/header.jspf"%>
<script>
$(document).ready(function() {
	var option = {};
	new GD.admin.init("option");
});
</script>
<body>
<div id="wrap">
<div id="content">
   <%@include file="include/body-header.jspf"%>
   <div id="bodier">
		<jsp:include page="include/adminmenu.jspf"/>
		<div id="body-content">
			<div id="content-wrap">
				<c:if test="${param.updated=='true'}">
					<div id="setting-updated" class="radius5">设置已保存。</div>
				</c:if>
				<div class="icon32 option-icon"></div>
				<h2 class="title">常规选项</h2>
				<form id="option" action="admin/site-option.do" method="get">
					<table class="form-table">
						<tbody>
						<tr>
							<th><label for="sitetitle">站点标题</label></th>
							<td>
								<input id="sitetitle" class="regular-text radius5" name="siteinfo.title" type="text"  value="${siteinfo.title}"/>
							</td>
						</tr>
						<tr>
							<th><label for="subtitle">副标题</label></th>
							<td>
								<input id="subtitle" class="regular-text radius5" name="siteinfo.subTitle" type="text" value="${siteinfo.subTitle}" />
								<span class="gray"> 用简洁的文字描述本站点。</span>
							</td>
						</tr>
						<tr>
							<th><label for="domain">站点网址<span class="gray">（URL）</span></label></th>
							<td>
								<input id="domain" class="regular-text radius5" name="siteinfo.domain" type="text" value="${siteinfo.domain}"/>
							</td>
						</tr>
						<tr>
							<th><label for="beian">备案信息<span class="gray">（如：京ICP证030173号）</span></label></th>
							<td>
								<input id="beian" class="regular-text radius5" name="siteinfo.beian" type="text" value="${siteinfo.beian}"/>
							</td>
						</tr>
						<tr>
							<th ><label for="description">网站描述</label></th>
							<td>
								<textarea id="description" class="description radius5" name="siteinfo.description">${siteinfo.description}</textarea>
								&nbsp;<span class="gray">描述本站点，该信息将显示在页面上，可被搜索引擎收录。</span>
							</td>
						</tr>
						<tr>
							<th><label for="keyWords">网站关键字</label></th>
							<td>
								<input id="keyWords" class="regular-text radius5" name="siteinfo.keyWords" type="text" value="${siteinfo.keyWords}" />
								<span class="gray">请用逗号分隔关键字。</span>
							</td>
						</tr>
						<tr>
							<th><label for="customCode">自定义代码<br/><span class="gray">(可以添加google分析等代码。)</span></label></th>
							<td>
								<textarea id="customCode" class="code radius5" name="siteinfo.customCode">${siteinfo.customCode}</textarea>
								<div class="tip"></div>
							</td>
						</tr>
						</tbody>
					</table>
					<input id="btn_sub" type="submit" class="button-blue" value="保存更改"/>
				</form>
			</div>
		</div>
		<div class="clear"></div>
	</div>
 </div>
 </div>
<%@include file="include/footer.jspf"%>